package com.onepiece.shipelves.common;

/**
 * @author: ting
 * @date: 2019-08-07
 */
public class Result<T> {

    public final static String SUCCESS = "200";

    private String code;

    private String message;

    private T data;

    public Result() {
        this.code = "200";
        this.message = "success";
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
